package dex.micros_gdc

class Resource {
	String name
	String role
	String email
	String status
	String employeeId
	String phoneNumber

	static constraints = {
		name(blank:false, nullable: false, maxSize: 60)
		role(blank:false, nullable: false, maxSize: 10, inList:["DEV", "DM", "PM" , "QA"])
		email(blank:false, email: true, nullable: false, maxSize:50)
		status(blank:false, nullable: false, inList:["Active", "Inactive"])
		employeeId(blank:false, nullable: false)
	}

	static mapping = {
		table 'mgtm_resource'

		id generator: 'increment'

		name(column:'name')
		role(column: 'role')
		email(column: 'email')
		status(column: 'status')
		employeeId(column: 'employee_id')
		phoneNumber(column: 'phone_number')

		version true
	}
}

